<!DOCTYPE html>
<html lang="en">
<head>
<%@page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<meta charset="utf-8">
<title>SW</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link id="bs-css" href="${pageContext.request.contextPath}/css/bootstrap-spacelab.css" rel="stylesheet">
<style type="text/css">
body {
	padding-bottom: 40px;
}

.sidebar-nav {
	padding: 9px 0;
}
</style>
<link href="${pageContext.request.contextPath}/css/bootstrap-responsive.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/charisma-app.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/jquery-ui-1.8.21.custom.css" rel="stylesheet">
<link href='${pageContext.request.contextPath}/css/fullcalendar.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/fullcalendar.print.css' rel='stylesheet' media='print'>
<link href='${pageContext.request.contextPath}/css/chosen.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/uniform.default.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/colorbox.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/jquery.cleditor.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/jquery.noty.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/noty_theme_default.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/elfinder.min.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/elfinder.theme.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/jquery.iphone.toggle.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/opa-icons.css' rel='stylesheet'>
<link href='${pageContext.request.contextPath}/css/uploadify.css' rel='stylesheet'>

<link href='${pageContext.request.contextPath}/css/pages/movie.css' rel='stylesheet'>


<!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
	  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->

<link rel="shortcut icon" href="${pageContext.request.contextPath}/img/favicon.ico">

</head>

<body>
	<input id="contextPath" name="contextPath" type="hidden" value="${pageContext.request.contextPath}" />
	<!-- topbar starts -->
	<div class="navbar">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse"> <span
					class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
				</a>


				<!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">

			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<div class="well nav-collapse sidebar-nav">
					<ul class="nav nav-tabs nav-stacked main-menu">
						<li class="nav-header hidden-tablet">Main</li>
						<li><a class="ajax-link" href="index"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>
						<li><a class="ajax-link" href="movie"><i class="icon-eye-open"></i><span class="hidden-tablet"> Movie List</span></a></li>
						<li><a class="ajax-link" href="graph?movie"><i class="icon-eye-open"></i><span class="hidden-tablet"> Movie Graph</span></a></li>
						<li><a class="ajax-link" href="graph?wrapper"><i class="icon-eye-open"></i><span class="hidden-tablet"> Wrapper Graph</span></a></li>

					</ul>
				</div>
			</div>
			<div id="content" class="span10">
				<div>
					<ul class="breadcrumb">
						<li><a href="index">Home</a></li>
					</ul>
				</div>

				<div class="row-fluid sortable ui-sortable">
					<div class="box span4">
						<div class="box-header well" data-original-title="">
							<h2>
								<i class="icon-th"></i> Movies
							</h2>
							<div class="box-icon">
								<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							</div>
						</div>
						<div class="box-content">
							<ul class="dashboard-list">
								<c:forEach items="${movies}" var="current">
									<li><i class="icon-fire"></i><a href="${pageContext.request.contextPath}/web/views/movie?id=${current.name}"> <span
											class="blue">${current.name}</span></a></li>
								</c:forEach>
							</ul>
						</div>
					</div>
					<!--/span-->

					<div class="box span8">

						<div class="box-header well" data-original-title>
							<h2>${movie.name}</h2>
							<div class="box-icon">
								<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
							</div>
						</div>
						<div class="box-content">
							<table class="table table-bordered">
								<thead>
									<tr>
										<th></th>
										<th>Text</th>
										<th>From</th>
									</tr>
								</thead>
								<tbody>

									<c:forEach items="${movie.actors}" var="current">
										<tr>
											<td class="center">Actor</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.creators}" var="current">
										<tr>
											<td class="center">Creator</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.directors}" var="current">
										<tr>
											<td class="center">Director</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.description}" var="current">
										<tr>
											<td class="center">Description</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.datePublished}" var="current">
										<tr>
											<td class="center">Date</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.contentRating}" var="current">
										<tr>
											<td class="center">Content Rating</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.duration}" var="current">
										<tr>
											<td class="center">Duration</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.genre}" var="current">
										<tr>
											<td class="center">Genre</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.image}" var="current">
										<tr>
											<td class="center">Image</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.keyword}" var="current">
										<tr>
											<td class="center">Keyword</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.productionCompany}" var="current">
										<tr>
											<td class="center">Production Company</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.provider}" var="current">
										<tr>
											<td class="center">Provider</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>
									<c:forEach items="${movie.rating}" var="current">
										<tr>
											<td class="center">Rating</td>
											<td class="center">${current.text}</td>
											<td class="center">${current.from}</td>
										</tr>
									</c:forEach>

								</tbody>
							</table>
						</div>

					</div>
					<!--/span-->
				</div>
			</div>
		</div>

		<hr>

	</div>
	<!--/.fluid-container-->

	<!-- external javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery -->
	<script src="${pageContext.request.contextPath}/js/jquery-1.7.2.min.js"></script>
	<!-- jQuery UI -->
	<script src="${pageContext.request.contextPath}/js/jquery-ui-1.8.21.custom.min.js"></script>
	<!-- transition / effect library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-transition.js"></script>
	<!-- alert enhancer library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-alert.js"></script>
	<!-- modal / dialog library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-modal.js"></script>
	<!-- custom dropdown library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-dropdown.js"></script>
	<!-- scrolspy library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-scrollspy.js"></script>
	<!-- library for creating tabs -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-tab.js"></script>
	<!-- library for advanced tooltip -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-tooltip.js"></script>
	<!-- popover effect library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-popover.js"></script>
	<!-- button enhancer library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-button.js"></script>
	<!-- accordion library (optional, not used in demo) -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-collapse.js"></script>
	<!-- carousel slideshow library (optional, not used in demo) -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-carousel.js"></script>
	<!-- autocomplete library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-typeahead.js"></script>
	<!-- tour library -->
	<script src="${pageContext.request.contextPath}/js/bootstrap-tour.js"></script>
	<!-- library for cookie management -->
	<script src="${pageContext.request.contextPath}/js/jquery.cookie.js"></script>
	<!-- calander plugin -->
	<script src='${pageContext.request.contextPath}/js/fullcalendar.min.js'></script>
	<!-- data table plugin -->
	<script src='${pageContext.request.contextPath}/js/jquery.dataTables.min.js'></script>

	<!-- chart libraries start -->
	<script src="${pageContext.request.contextPath}/js/excanvas.js"></script>
	<script src="${pageContext.request.contextPath}/js/jquery.flot.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/jquery.flot.pie.min.js"></script>
	<script src="${pageContext.request.contextPath}/js/jquery.flot.stack.js"></script>
	<script src="${pageContext.request.contextPath}/js/jquery.flot.resize.min.js"></script>
	<!-- chart libraries end -->

	<!-- select or dropdown enhancer -->
	<script src="${pageContext.request.contextPath}/js/jquery.chosen.min.js"></script>
	<!-- checkbox, radio, and file input styler -->
	<script src="${pageContext.request.contextPath}/js/jquery.uniform.min.js"></script>
	<!-- plugin for gallery image view -->
	<script src="${pageContext.request.contextPath}/js/jquery.colorbox.min.js"></script>
	<!-- rich text editor library -->
	<script src="${pageContext.request.contextPath}/js/jquery.cleditor.min.js"></script>
	<!-- notification plugin -->
	<script src="${pageContext.request.contextPath}/js/jquery.noty.js"></script>
	<!-- file manager library -->
	<script src="${pageContext.request.contextPath}/js/jquery.elfinder.min.js"></script>
	<!-- star rating plugin -->
	<script src="${pageContext.request.contextPath}/js/jquery.raty.min.js"></script>
	<!-- for iOS style toggle switch -->
	<script src="${pageContext.request.contextPath}/js/jquery.iphone.toggle.js"></script>
	<!-- autogrowing textarea plugin -->
	<script src="${pageContext.request.contextPath}/js/jquery.autogrow-textarea.js"></script>
	<!-- multiple file upload plugin -->
	<script src="${pageContext.request.contextPath}/js/jquery.uploadify-3.1.min.js"></script>
	<!-- history.js for cross-browser state change on ajax -->
	<script src="${pageContext.request.contextPath}/js/jquery.history.js"></script>
	<!-- application script for Charisma demo -->
	<script src="${pageContext.request.contextPath}/js/charisma.js"></script>

	<script src="${pageContext.request.contextPath}/js/pages/movie.js"></script>

</body>
</html>
